package com.commerceerp.system.service;

import com.commerceerp.system.entity.GoodClassInfo;
import com.commerceerp.system.entity.GoodInfo;
import com.commerceerp.system.entity.GoodStorehouseInfo;
import com.commerceerp.system.entity.StorehouseInfo;

import java.util.List;
import java.util.Map;


public interface FactoryService {

    List<Map> getAllSystemGood(String goodPlatformSku,String goodSystemSku, String goodSystemChname, String goodClass, String goodSellType, Integer goodCreateTimePX, Integer goodUpdTimePX,
                               Integer goodSystemSkuPX,Integer goodPurchasePricePX);

    Integer saveNewSystemGood(GoodInfo goodInfo);

    List<Map> getAllGoodStorehouseInfo(String gsStorehouseId, String goodSystemChname, String goodSystemSku,
                                       String goodSellType, Integer gsCreateTimePX, Integer gsUpdTimePX,
                                       Integer gsGoodSkuPX, Integer gsAllNumberPX);

    Integer updGoodStorehouseInfo(GoodStorehouseInfo goodStorehouseInfo);

    List<StorehouseInfo> getAllStorehouseInfo();

    Integer saveNewStorehouseInfo(StorehouseInfo storehouseInfo);

    Integer updPlatformSkuToGood(String goodId,String goodPlatfromSku,String goodPlatformType);

    List<GoodInfo> getNoBundingSystemSku();

    Map<String,Object> getGoodInfoByGoodId(String goodId);

    Integer updSystemGoodInfoById(GoodInfo goodInfo);

    Integer delSystemGoodInfoById(String goodId);

    List<Map> getAllGoodClass();

    Integer updGoodClass(String classIdAndNames);

    Integer saveGoodClass(GoodClassInfo goodClassInfo);

    Integer delGoodClass(String classId);

    Integer delStorehouseById(String storehouseId);

    Integer saveGoodStorehouseInfoByGoodId(GoodStorehouseInfo goodStorehouseInfo);

}
